package com.adderis.soft.service;

import java.util.List;

import com.adderis.soft.domain.model.Cloudpoint;

public interface ICloudpointBo {

	/**
	 * Persist a Cloudpoint entity in the database
	 * 
	 * @param transientCloudpoint
	 */
	public void persist(Cloudpoint transientCloudpoint);

	/**
	 * Remove a persisted Cloudpoint from the database
	 * 
	 * @param persistentCloudpoint
	 */
	public void remove(Cloudpoint persistentCloudpoint);

	public void remove(Integer id);

	/**
	 * Update a Cloudpoint in the database
	 * 
	 * @param detachedCloudpoint
	 * @return merged Cloudpoint
	 */
	public Cloudpoint merge(Cloudpoint detachedCloudpoint);

	/**
	 * Find a Cloudpoint by id
	 * 
	 * @param id
	 * @return the found Cloudpoint
	 */
	public Cloudpoint findById(Integer id);

	/**
	 * Find a Cloudpoint by id
	 * 
	 * @return the found Cloudpoint
	 */
	public List<Cloudpoint> findAll();

	/**
	 * Search Cloudpoints
	 * 
	 * @param searchString
	 * @return the found Cloudpoints
	 */
	public List<Cloudpoint> search(String searchString);

}
